package handler

import (
	"git.huoys.com/block_chain/mall/internal/auth/service"
	"github.com/gin-gonic/gin"
)

func Routers(s service.AuthService, e *gin.Engine) {
	var dy = NewCommentHandler(s)
	userApi := e.Group("/auth")
	userApi.POST("/login", dy.Login)
	userApi.POST("/update_token", dy.UpdateToken)
	userApi.POST("/register", dy.Register)
}
